﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Profile.aspx.cs" 
Inherits="brockredge.Profile" EnableEventValidation="false"%>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">

    $(".profileViewcorner").corner();
    $(".profileEditcorner").corner();
     
 
   
</script>
   

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="profileViewcorner" class="profileViewcorner" style="background-color:White;">
    <table width="100%">
    <tr>
    <td align="right" colspan="2">
        <a href="javascript:editProfile()"><img src="IMAGES/edit.jpg" /></a>
    </td>
    </tr>
        <tr>
            <td>
                <asp:Label ID="lblFname" runat="server" Text="First Name"></asp:Label>
            </td>
            <td>
                <asp:Label ID="lblFnameDis" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblLname" runat="server" Text="Last Name"></asp:Label>
            </td>
            <td>
                <asp:Label ID="lblLnameDis" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblMobile" runat="server" Text="Mobile"></asp:Label>
            </td>
            <td>
                <asp:Label ID="lblMobileDis" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblLine1" runat="server" Text="Address Line1"></asp:Label>
            </td>
            <td>
                <asp:Label ID="lblLine1Des" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblLine2" runat="server" Text="Address Line2"></asp:Label>
            </td>
            <td>
                <asp:Label ID="lblLine2Dis" runat="server"></asp:Label>
            </td>
        </tr>
    </table>
</div>

<div id="profileEditcorner" class="profileEditcorner" style="background-color:White; display:none;">
    <table width="100%">
    <tr>
    <td align="right" colspan="2">
        <asp:Button ID="saveProfile" runat="server" Text="Save" BorderStyle="None" 
            onclick="saveProfile_Click"/>
    </td>
    </tr>
        <tr>
            <td>
                <asp:Label ID="Label1" runat="server" Text="First Name"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="fnametxtbox" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label3" runat="server" Text="Last Name"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="lnametxtbox" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label5" runat="server" Text="Mobile"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="mobileTextBox" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label7" runat="server" Text="Address Line1"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="lin1txtbox" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Label9" runat="server" Text="Address Line2"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="lin2txtbox" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="Location" runat="server" Text="Location"></asp:Label>
            </td>
            <td>
                <asp:DropDownList ID="ddlState" runat="server">
                </asp:DropDownList>
                <asp:DropDownList ID="ddlCity" runat="server">
                </asp:DropDownList>
                 <asp:DropDownList ID="ddlArea" runat="server">
                </asp:DropDownList>
                <asp:CascadingDropDown ID="CddlState" 
                                   TargetControlID="ddlstate" 
                                   runat="server"
                                   Category="State"
                                   PromptText="State:"
                                   LoadingText="Loading..."
                                   ServicePath="~/SERVICES/GetDataFromAjax.asmx"
                                   ServiceMethod="getStates">
                </asp:CascadingDropDown>
                <asp:CascadingDropDown ID="CddlCity" 
                               runat="server"
                               TargetControlID="ddlcity"
                               Category="City"
                               ParentControlID="ddlstate"
                               PromptText="City:"
                                LoadingText="Loading..."
                                ServicePath="~/SERVICES/GetDataFromAjax.asmx"
                                ServiceMethod="getCitiesByState">
                </asp:CascadingDropDown>
                <asp:CascadingDropDown ID="cddlArea" 
                               runat="server"
                               TargetControlID="ddlarea"
                               Category="Area"
                               ParentControlID="ddlcity"
                                PromptText="Area:"
                                LoadingText="Loading..."
                                ServicePath="~/SERVICES/GetDataFromAjax.asmx"
                                ServiceMethod="getAreas">
                </asp:CascadingDropDown>
            </td>
        </tr>
    </table>
</div>
</asp:Content>
